package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.MarketStorage;
import com.cskaoyan.service.WXStorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * 创建日期: 2022/05/08 22:43
 *
 * @author shuyang
 */
@RestController
@RequestMapping("wx/storage")
public class StorageWXController {
    @Autowired
    WXStorageService wxStorageService;
    @PostMapping("upload")
    public BaseRespVo<MarketStorage> storageUploadInVX(MultipartFile file){
        MarketStorage marketStorage = wxStorageService.storageUploadInVX(file);
        return BaseRespVo.ok(marketStorage);
    }
}
